import React from 'react';
import Dialog from './Dialog.js';
import UserMessage from './UserMessage.js';

class Composition extends React.Component{
	constructor(props){
		super(props);
		this.dealHandler = this.deal.bind(this);
	}

	deal(value){
		console.log("Composition:"+value);
	}

	render(){
		return (

				<Dialog title="提示信息" message="请确认?" buttonTitle="确认" buttonClickHandler={this.dealHandler}>
					<UserMessage/>
				</Dialog> 
			);
	}
}
export default Composition;